package org.jeecgframework.web.util;

import java.io.FileOutputStream;
import java.io.OutputStream;

import org.apache.poi.xssf.usermodel.XSSFWorkbook;

public class ExcelWrite {

	public static void createExcel(XSSFWorkbook hwk, String newFileName) throws Exception {
		String path = StaticValue.UPLOAD_PATH + newFileName;
		OutputStream stream = new FileOutputStream(path);
		hwk.write(stream);
		stream.close();
	}
}
